import axiosApi from "../../AxiosApi";
// 创建流程分类
const apiList = {
  page: {
    method: 'post',
    url: `/api/v1/classify/query`
  },
  createClassify: {
    method: 'post',
    url: `/api/v1/classify`
  },
  classifyList: {
    method: 'get',
    url: `/api/v1/classify`
  },
  updateClassify: {
    method: 'put',
    url: `/api/v1/classify`
  },
  deleteClassify: {
    method: 'delete',
    url: `/api/v1/classify`
  },
}
export default {
  createClassify (data) {
    return axiosApi({
      ...apiList.createClassify,
      data
    })
  },
  page (data) {
    return axiosApi({
      ...apiList.page,
      data
    })
  },

  classifyList (data) {
    return axiosApi({
      ...apiList.classifyList,
      data
    })
  },

  updateClassify (data) {
    return axiosApi({
      ...apiList.updateClassify,
      data
    })
  },

  deleteClassify (data) {
    return axiosApi({
      ...apiList.deleteClassify,
      data
    })
  },
}
